cmake_minimum_required(VERSION 3.16)
project(SNAKECPP)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(DCMAKE_SH="CMAKE_SH-NOTFOUND")

# For Windows and Unix screen clearing
if(WIN32)
    add_definitions(-D_WIN32)
else()
    add_definitions(-D_UNIX)
endif()

add_executable(SNAKECPP utils.h snake.h snake.cpp main.cpp)